package com.dorm.cj.facade;

public class Facade {

    BuyFood buyFood;
    CookFood cookFood;

    public Facade() {
        buyFood = new BuyFood();
        cookFood = new CookFood();
    }

    public void eat() {
        buyFood.buy();
        cookFood.cook();
        System.out.println("我只关心吃饭");
    }
}
